﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlankMvc.Dao.Entities.Base;
using FluentNHibernate.Mapping;

namespace BlankMvc.Dao.Entities.Impl {
	public class Comment : Entity<int> {
		public virtual DateTime DateCreation { get; set; }
		public virtual string Text { get; set; }
		public virtual Post Post { get; set; }
		public virtual User AnsverUser { get; set; }
	}

	public class CommentMap : ClassMap<Comment> {
		public CommentMap() {
			Table("Comments");
			Id(x => x.Id);
		}
	}
}
